public class Family {
    private String name;
    private Father father;
    private Wife wife;
    private Son son;
    private double account;
    private Family family;
    public Family(String name){
        this.name = name;
    }

    public void setWife(Wife wife) {
        this.wife = wife;
        this.wife.setFamily(this.family);
    }

    public void setSon(Son son) {
        this.son = son;
        this.son.setFamily(this.family);
    }

    public void setFather(Father father) {
        this.father = father;
        this.father.setFamily(this.family);
    }

    public double getAccount() {
        return this.account;
    }

    public void setAccount(double v) {
        this.account = 0+v;
    }

    public void setFamily(Family family) {
        this.family = family;
        System.out.println(family.name+"财务流程+++++++++++++++");
    }
}
